# with open('./aaa/my_diary.txt','w',encoding='utf-8')as f:
#     res=f.write('2023-10-01' '晴'"\n"
#     '今天学习了python的文件操作')
# read =  open('./aaa/my_diary.txt','r',encoding='utf-8')
# str1=read.read()
# print(str1)

day = input ("请输入今天的日期：")
weather= input("请输入今天天气：")
summry = input("请输入总结：")
with open('./aaa/my_diary.txt','w',encoding='utf-8')as f:
    www = f.write(f"{day}\t{weather}\n{summry}\n")
read =  open('./aaa/my_diary.txt','r',encoding='utf-8')
str1=read.read()
print(str1)
print("今日日记已追加")
    